﻿// Study0205.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
using namespace std;


int main()
{
	int a{ 0 }, b{ 0 }, x{ 0 };
	cout << "input value of a:" << endl;
	cin >> a;
	cout << "input value of b:" << endl;
	cin >> b;
	x = (a - b) > 0 ? (a-b) : (b-a);
	cout << "The difference of a and b is :\t\t" << x << endl;
	return 0;
}

